<?php
namespace lib\smarty;
abstract class SmartyBase extends \Smarty implements \connector\template
{
    public function __construct()
    {
        parent::__construct();
        $url=WEB_ROOT.'/template/';
        $dir=$_GET['s'];
        $arr=explode('/',$dir);
        $url.=$arr[0];
        if (file_exists($url))
        {
            $this->addTemplateDir($url);
        }else{
            echo '不存在此文件夹：',$url;
        }
    }
}